import java.util.Scanner;

public class Note {
    String input ="";
    public void createNewFile(){
        System.out.println("请输入类容，停止编写请输入stop");
        Scanner scanner= new Scanner(System.in);
        boolean isFinish = false;

        while (!isFinish){
            String next =new scanner.next();
            if (next.equals(("stop")){
                isFinish = true;
            }else{
                input =input+next;
                if (input.length()>0){
                    input =input+"\n"+next;
                }else {
                    input =input+next;
                }
            }
        }
    }
}
